<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: Ksdk_common</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__ksdk__common.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Ksdk_common</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaaabdaf7ee58ca7269bd4bf24efcde092"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaaabdaf7ee58ca7269bd4bf24efcde092"></a>
typedef int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a></td></tr>
<tr class="memdesc:gaaabdaf7ee58ca7269bd4bf24efcde092"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type used for all status and error return values. <br /></td></tr>
<tr class="separator:gaaabdaf7ee58ca7269bd4bf24efcde092"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga7ff0b98bb1341c07acefb1473b6eda29"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ksdk__common.html#ga7ff0b98bb1341c07acefb1473b6eda29">_status_groups</a> { <br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29ae7c95e11ceb8067c9c2703f96e51aca7">kStatusGroup_Generic</a> = 0, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a8db8bea33da992b22cafbae1dcf65bb0">kStatusGroup_FLASH</a> = 1, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a491dbb2373725b607970c032f4e04ee3">kStatusGroup_LPSPI</a> = 4, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a3bc2ecc10af8973a1ecc4f0163fb9b53">kStatusGroup_FLEXIO_SPI</a> = 5, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29aee549dc5fb5e05a0d8daaa61a089b222">kStatusGroup_DSPI</a> = 6, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29ae7514134f14004b1835d27cac48bd991">kStatusGroup_FLEXIO_UART</a> = 7, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a67e5d3d11fb3f47ec11d9ee612b98b94">kStatusGroup_FLEXIO_I2C</a> = 8, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a0d6c6a34fc0b6dbcb323f010556a3be1">kStatusGroup_LPI2C</a> = 9, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29aeeb2ed6ef4ce59c7e1d416466f55bfb7">kStatusGroup_UART</a> = 10, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a5c67a60e98e49151455f565c2834d228">kStatusGroup_I2C</a> = 11, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a9f1b2d0eeee16f209d7eed3bdb1cf533">kStatusGroup_LPSCI</a> = 12, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a3bcb0be184f8d5bb76d4be8e99b4e45e">kStatusGroup_LPUART</a> = 13, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a60c31c70600aff4f290ca2d790622977">kStatusGroup_SPI</a> = 14, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29af98b407f4e66e7046a3173031b45253d">kStatusGroup_XRDC</a> = 15, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a073c6e3ccd0dbcf1b812cb21da5e7df9">kStatusGroup_SEMA42</a> = 16, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29aba83e94d1735b695119429a4e55bb3a4">kStatusGroup_SDHC</a> = 17, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a1c5e35d9d03724b7ccadcae8e0451384">kStatusGroup_SDMMC</a> = 18, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29ae4461a3a085ea13b5fe7908bf1e109f8">kStatusGroup_SAI</a> = 19, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a8210c55fe061ff24e75a0f928dbfcb39">kStatusGroup_MCG</a> = 20, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a9771abafdcf43bf924599a0081e92bf2">kStatusGroup_SCG</a> = 21, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a85685b8cde1285d240569b9518c32fc0">kStatusGroup_SDSPI</a> = 22, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29ae834c896c69c50855c5cf07768a6cba3">kStatusGroup_FLEXIO_I2S</a> = 23, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a3b3116c6f4aa1a88e6e7abc45df58938">kStatusGroup_SDRAMC</a> = 35, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a94d2a6fe8021fed5487169a46421d47e">kStatusGroup_POWER</a> = 39, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a7d6b922ab2a42d6ef35cfb2be4f80251">kStatusGroup_ENET</a> = 40, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a521a4b8ac1776d0f41af044886a71b3b">kStatusGroup_PHY</a> = 41, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29adb8c69c2f8cd344f3e2dc0b0db4a1631">kStatusGroup_TRGMUX</a> = 42, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29ae16d6bba44ae6f24187946960fb826dd">kStatusGroup_SMARTCARD</a> = 43, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a376f952aee5cd45d903da520a37e4c52">kStatusGroup_LMEM</a> = 44, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a4a488e0f7cc1d3baa449ab4ca99e7b34">kStatusGroup_QSPI</a> = 45, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a210ff4fa30e99618f8d3e978df03a7b6">kStatusGroup_DMA</a> = 50, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a0ec7f0302a8f7eb082f449933880a1ad">kStatusGroup_EDMA</a> = 51, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a3091dcef1c0c7cd48658d8b43b52fbaf">kStatusGroup_DMAMGR</a> = 52, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a1461a28ac2297f07aa34581074cf9923">kStatusGroup_FLEXCAN</a> = 53, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a64b54e0423e0ad8a227a38cad4ad4eda">kStatusGroup_LTC</a> = 54, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a214d1cc4faa574be18fa9d865f2ca36d">kStatusGroup_FLEXIO_CAMERA</a> = 55, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a56134a73f0cfd393dd7cf7fb2395dd99">kStatusGroup_NOTIFIER</a> = 98, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a499ec238a1614827065533960716e652">kStatusGroup_DebugConsole</a> = 99, 
<br />
&#160;&#160;<a class="el" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29ae0c3a94577af5271a1042757d3c8fdc1">kStatusGroup_ApplicationRangeStart</a> = 100
<br />
 }<tr class="memdesc:ga7ff0b98bb1341c07acefb1473b6eda29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Status group numbers.  <a href="group__ksdk__common.html#ga7ff0b98bb1341c07acefb1473b6eda29">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga7ff0b98bb1341c07acefb1473b6eda29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga98674236630d24e8234d66eabcb26953"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga98674236630d24e8234d66eabcb26953"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ksdk__common.html#ga98674236630d24e8234d66eabcb26953">_generic_status</a> { <br />
&#160;&#160;<b>kStatus_Success</b> = MAKE_STATUS(kStatusGroup_Generic, 0), 
<br />
&#160;&#160;<b>kStatus_Fail</b> = MAKE_STATUS(kStatusGroup_Generic, 1), 
<br />
&#160;&#160;<b>kStatus_ReadOnly</b> = MAKE_STATUS(kStatusGroup_Generic, 2), 
<br />
&#160;&#160;<b>kStatus_OutOfRange</b> = MAKE_STATUS(kStatusGroup_Generic, 3), 
<br />
&#160;&#160;<b>kStatus_InvalidArgument</b> = MAKE_STATUS(kStatusGroup_Generic, 4), 
<br />
&#160;&#160;<b>kStatus_Timeout</b> = MAKE_STATUS(kStatusGroup_Generic, 5), 
<br />
&#160;&#160;<b>kStatus_NoTransferInProgress</b> = MAKE_STATUS(kStatusGroup_Generic, 6), 
<br />
&#160;&#160;<b>kStatus_Success</b> = MAKE_STATUS(kStatusGroupGeneric, 0), 
<br />
&#160;&#160;<b>kStatus_Fail</b> = MAKE_STATUS(kStatusGroupGeneric, 1), 
<br />
&#160;&#160;<b>kStatus_ReadOnly</b> = MAKE_STATUS(kStatusGroupGeneric, 2), 
<br />
&#160;&#160;<b>kStatus_OutOfRange</b> = MAKE_STATUS(kStatusGroupGeneric, 3), 
<br />
&#160;&#160;<b>kStatus_InvalidArgument</b> = MAKE_STATUS(kStatusGroupGeneric, 4)
<br />
 }<tr class="memdesc:ga98674236630d24e8234d66eabcb26953"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic status return codes. <br /></td></tr>
</td></tr>
<tr class="separator:ga98674236630d24e8234d66eabcb26953"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gafa528dfdcd79df34a9af1d1156431f16"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ksdk__common.html#gafa528dfdcd79df34a9af1d1156431f16">EnableIRQ</a> (IRQn_Type interrupt)</td></tr>
<tr class="memdesc:gafa528dfdcd79df34a9af1d1156431f16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable specific interrupt.  <a href="#gafa528dfdcd79df34a9af1d1156431f16">More...</a><br /></td></tr>
<tr class="separator:gafa528dfdcd79df34a9af1d1156431f16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e26adbc5c3ff0a4dd1fa1eb72e778c4"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ksdk__common.html#ga7e26adbc5c3ff0a4dd1fa1eb72e778c4">DisableIRQ</a> (IRQn_Type interrupt)</td></tr>
<tr class="memdesc:ga7e26adbc5c3ff0a4dd1fa1eb72e778c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable specific interrupt.  <a href="#ga7e26adbc5c3ff0a4dd1fa1eb72e778c4">More...</a><br /></td></tr>
<tr class="separator:ga7e26adbc5c3ff0a4dd1fa1eb72e778c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4f63764780e8eae7726d7a7e10f4b2a1"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ksdk__common.html#ga4f63764780e8eae7726d7a7e10f4b2a1">DisableGlobalIRQ</a> (void)</td></tr>
<tr class="memdesc:ga4f63764780e8eae7726d7a7e10f4b2a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the global IRQ.  <a href="#ga4f63764780e8eae7726d7a7e10f4b2a1">More...</a><br /></td></tr>
<tr class="separator:ga4f63764780e8eae7726d7a7e10f4b2a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacca38e4e11db8e795201c82f6ce4c9d5"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ksdk__common.html#gacca38e4e11db8e795201c82f6ce4c9d5">EnableGlobalIRQ</a> (uint32_t primask)</td></tr>
<tr class="memdesc:gacca38e4e11db8e795201c82f6ce4c9d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enaable the global IRQ.  <a href="#gacca38e4e11db8e795201c82f6ce4c9d5">More...</a><br /></td></tr>
<tr class="separator:gacca38e4e11db8e795201c82f6ce4c9d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a305a59a41ac39fdbf3c966a4fc3a07"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ksdk__common.html#ga6a305a59a41ac39fdbf3c966a4fc3a07">InstallIRQHandler</a> (IRQn_Type irq, uint32_t irqHandler)</td></tr>
<tr class="memdesc:ga6a305a59a41ac39fdbf3c966a4fc3a07"><td class="mdescLeft">&#160;</td><td class="mdescRight">install IRQ handler  <a href="#ga6a305a59a41ac39fdbf3c966a4fc3a07">More...</a><br /></td></tr>
<tr class="separator:ga6a305a59a41ac39fdbf3c966a4fc3a07"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Usage Information</h2>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga7ff0b98bb1341c07acefb1473b6eda29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ksdk__common.html#ga7ff0b98bb1341c07acefb1473b6eda29">_status_groups</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Status group numbers. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29ae7c95e11ceb8067c9c2703f96e51aca7"></a>kStatusGroup_Generic&#160;</td><td class="fielddoc">
<p>Group number for generic status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a8db8bea33da992b22cafbae1dcf65bb0"></a>kStatusGroup_FLASH&#160;</td><td class="fielddoc">
<p>Group number for FLASH status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a491dbb2373725b607970c032f4e04ee3"></a>kStatusGroup_LPSPI&#160;</td><td class="fielddoc">
<p>Group number for LPSPI status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a3bc2ecc10af8973a1ecc4f0163fb9b53"></a>kStatusGroup_FLEXIO_SPI&#160;</td><td class="fielddoc">
<p>Group number for FLEXIO SPI status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29aee549dc5fb5e05a0d8daaa61a089b222"></a>kStatusGroup_DSPI&#160;</td><td class="fielddoc">
<p>Group number for DSPI status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29ae7514134f14004b1835d27cac48bd991"></a>kStatusGroup_FLEXIO_UART&#160;</td><td class="fielddoc">
<p>Group number for FLEXIO UART status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a67e5d3d11fb3f47ec11d9ee612b98b94"></a>kStatusGroup_FLEXIO_I2C&#160;</td><td class="fielddoc">
<p>Group number for FLEXIO I2C status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a0d6c6a34fc0b6dbcb323f010556a3be1"></a>kStatusGroup_LPI2C&#160;</td><td class="fielddoc">
<p>Group number for LPI2C status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29aeeb2ed6ef4ce59c7e1d416466f55bfb7"></a>kStatusGroup_UART&#160;</td><td class="fielddoc">
<p>Group number for UART status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a5c67a60e98e49151455f565c2834d228"></a>kStatusGroup_I2C&#160;</td><td class="fielddoc">
<p>Group number for UART status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a9f1b2d0eeee16f209d7eed3bdb1cf533"></a>kStatusGroup_LPSCI&#160;</td><td class="fielddoc">
<p>Group number for LPSCI status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a3bcb0be184f8d5bb76d4be8e99b4e45e"></a>kStatusGroup_LPUART&#160;</td><td class="fielddoc">
<p>Group number for LPUART status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a60c31c70600aff4f290ca2d790622977"></a>kStatusGroup_SPI&#160;</td><td class="fielddoc">
<p>Group number for SPI status code. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29af98b407f4e66e7046a3173031b45253d"></a>kStatusGroup_XRDC&#160;</td><td class="fielddoc">
<p>Group number for XRDC status code. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a073c6e3ccd0dbcf1b812cb21da5e7df9"></a>kStatusGroup_SEMA42&#160;</td><td class="fielddoc">
<p>Group number for SEMA42 status code. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29aba83e94d1735b695119429a4e55bb3a4"></a>kStatusGroup_SDHC&#160;</td><td class="fielddoc">
<p>Group number for SDHC status code </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a1c5e35d9d03724b7ccadcae8e0451384"></a>kStatusGroup_SDMMC&#160;</td><td class="fielddoc">
<p>Group number for SDMMC status code </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29ae4461a3a085ea13b5fe7908bf1e109f8"></a>kStatusGroup_SAI&#160;</td><td class="fielddoc">
<p>Group number for SAI status code </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a8210c55fe061ff24e75a0f928dbfcb39"></a>kStatusGroup_MCG&#160;</td><td class="fielddoc">
<p>Group number for MCG status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a9771abafdcf43bf924599a0081e92bf2"></a>kStatusGroup_SCG&#160;</td><td class="fielddoc">
<p>Group number for SCG status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a85685b8cde1285d240569b9518c32fc0"></a>kStatusGroup_SDSPI&#160;</td><td class="fielddoc">
<p>Group number for SDSPI status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29ae834c896c69c50855c5cf07768a6cba3"></a>kStatusGroup_FLEXIO_I2S&#160;</td><td class="fielddoc">
<p>Group number for FLEXIO I2S status codes </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a3b3116c6f4aa1a88e6e7abc45df58938"></a>kStatusGroup_SDRAMC&#160;</td><td class="fielddoc">
<p>Group number for SDRAMC status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a94d2a6fe8021fed5487169a46421d47e"></a>kStatusGroup_POWER&#160;</td><td class="fielddoc">
<p>Group number for POWER status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a7d6b922ab2a42d6ef35cfb2be4f80251"></a>kStatusGroup_ENET&#160;</td><td class="fielddoc">
<p>Group number for ENET status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a521a4b8ac1776d0f41af044886a71b3b"></a>kStatusGroup_PHY&#160;</td><td class="fielddoc">
<p>Group number for PHY status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29adb8c69c2f8cd344f3e2dc0b0db4a1631"></a>kStatusGroup_TRGMUX&#160;</td><td class="fielddoc">
<p>Group number for TRGMUX status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29ae16d6bba44ae6f24187946960fb826dd"></a>kStatusGroup_SMARTCARD&#160;</td><td class="fielddoc">
<p>Group number for SMARTCARD status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a376f952aee5cd45d903da520a37e4c52"></a>kStatusGroup_LMEM&#160;</td><td class="fielddoc">
<p>Group number for LMEM status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a4a488e0f7cc1d3baa449ab4ca99e7b34"></a>kStatusGroup_QSPI&#160;</td><td class="fielddoc">
<p>Group number for QSPI status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a210ff4fa30e99618f8d3e978df03a7b6"></a>kStatusGroup_DMA&#160;</td><td class="fielddoc">
<p>Group number for DMA status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a0ec7f0302a8f7eb082f449933880a1ad"></a>kStatusGroup_EDMA&#160;</td><td class="fielddoc">
<p>Group number for EDMA status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a3091dcef1c0c7cd48658d8b43b52fbaf"></a>kStatusGroup_DMAMGR&#160;</td><td class="fielddoc">
<p>Group number for DMAMGR status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a1461a28ac2297f07aa34581074cf9923"></a>kStatusGroup_FLEXCAN&#160;</td><td class="fielddoc">
<p>Group number for FlexCAN status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a64b54e0423e0ad8a227a38cad4ad4eda"></a>kStatusGroup_LTC&#160;</td><td class="fielddoc">
<p>Group number for LTC status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a214d1cc4faa574be18fa9d865f2ca36d"></a>kStatusGroup_FLEXIO_CAMERA&#160;</td><td class="fielddoc">
<p>Group number for FLEXIO CAMERA status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a56134a73f0cfd393dd7cf7fb2395dd99"></a>kStatusGroup_NOTIFIER&#160;</td><td class="fielddoc">
<p>Group number for NOTIFIER status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29a499ec238a1614827065533960716e652"></a>kStatusGroup_DebugConsole&#160;</td><td class="fielddoc">
<p>Group number for debug console status codes. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7ff0b98bb1341c07acefb1473b6eda29ae0c3a94577af5271a1042757d3c8fdc1"></a>kStatusGroup_ApplicationRangeStart&#160;</td><td class="fielddoc">
<p>Starting number for application groups. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga4f63764780e8eae7726d7a7e10f4b2a1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t DisableGlobalIRQ </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disable the global IRQ. </p>
<p>Disable the global interrupt and return the current primask register. User is required to provided the primask register for the <a class="el" href="group__ksdk__common.html#gacca38e4e11db8e795201c82f6ce4c9d5" title="Enaable the global IRQ. ">EnableGlobalIRQ()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>Current primask value. </dd></dl>

</div>
</div>
<a class="anchor" id="ga7e26adbc5c3ff0a4dd1fa1eb72e778c4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void DisableIRQ </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>interrupt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disable specific interrupt. </p>
<p>Disable the interrupt not routed from intmux.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">interrupt</td><td>The IRQ number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gacca38e4e11db8e795201c82f6ce4c9d5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EnableGlobalIRQ </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>primask</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enaable the global IRQ. </p>
<p>Set the primask register with the provided primask value but not just enable the primask. The idea is for the convinience of integration of RTOS. some RTOS get its own management mechanism of primask. User is required to use the <a class="el" href="group__ksdk__common.html#gacca38e4e11db8e795201c82f6ce4c9d5" title="Enaable the global IRQ. ">EnableGlobalIRQ()</a> and <a class="el" href="group__ksdk__common.html#ga4f63764780e8eae7726d7a7e10f4b2a1" title="Disable the global IRQ. ">DisableGlobalIRQ()</a> in pair.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">primask</td><td>value of primask register to be restored. The primask value is supposed to be provided by the <a class="el" href="group__ksdk__common.html#ga4f63764780e8eae7726d7a7e10f4b2a1" title="Disable the global IRQ. ">DisableGlobalIRQ()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gafa528dfdcd79df34a9af1d1156431f16"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EnableIRQ </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>interrupt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable specific interrupt. </p>
<p>Enable the interrupt not routed from intmux.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">interrupt</td><td>The IRQ number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6a305a59a41ac39fdbf3c966a4fc3a07"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InstallIRQHandler </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>irq</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>irqHandler</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>install IRQ handler </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">irq</td><td>IRQ number </td></tr>
    <tr><td class="paramname">irqHandler</td><td>IRQ handler address </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:24 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
